GCC=g++
CPPFLAGS=-I/usr/include -std=c++0x
LDFLAGS=-lX11 -lXrandr
SRCPKG=snappy-$(shell cat VERSION.txt).src.tar.gz
ALLFILES=$(shell ls -1 | grep -v '.tar.gz')

all: snappy

snappy: main.o
	g++ $(LDFLAGS) -o $@ $^

.PHONY: srcpkg
srcpkg: clean $(SRCPKG)

$(SRCPKG): 
	tar -czf $(SRCPKG) $(ALLFILES)

clean:
	rm -rf main.o snappy
